package com.atstudy.web;

import com.atstudy.pojo.Cla;
import com.atstudy.service.ClaService;
import com.atstudy.service.ClaServiceImpl;

import java.util.Date;
import java.util.UUID;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2023/1/11 15:18
 * @copyright: 博为峰
 */
public class Test {
    public static void main(String[] args) {
        /*ClaServiceImpl claService = new ClaServiceImpl();
        Cla cla = new Cla(1, "119期", 119, new Date());
        int id = claService.addCla(cla);
        System.out.println(id);*/

        String uuid = UUID.randomUUID().toString();
        System.out.println(uuid);
        System.out.println(uuid.substring(0,uuid.indexOf("-")));
    }
}
